﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class doctor_webcon_student : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public int Guid
    {
        set 
        {
            this.hlName.Attributes.Add("Guid", value.ToString());
            Student stu = new Student(value);
            this.labEmail.Text = stu.Email;
            this.labID.Text = stu.UserID;
            this.labPaper.Text = stu.PaperName;
            this.hlName.Text = stu.RealName;
        }
        get
        {
            return Convert.ToInt32(this.hlName.Attributes["Guid"]);
        }
    }

    public string UID
    {
        set
        {
            this.hlName.NavigateUrl = Params.DoctorFolderHttp + "student.aspx?guid=" + this.Guid.ToString()+"&uid="+value;
        }
    }

    public int SortID
    {
        set
        {
            this.labSortID.Text = value.ToString();
        }
    }
}
